/**
 * 登录相关相关接口
 */
import request from '@/utils/request'

export default {
  /** register.vue---开始 **/
  registerVercode(params){
    let data = {
      phone: params.phone,
      type: 2
    };
    return request({
      url: '/shopUser/sendVercode',
      method: 'post',
      data
    })
  },
  registerPassword(params){
    let data = {
      phone: params.phone,
      password: params.password,
      remarks: params.code,
    };
    return request({
      url: '/shopUser/restPassword',
      method: 'post',
      data
    })
  },
  /** register.vue---结束 **/
  /** reset.vue---开始 **/
  resetVercode(params){
    let data = {
      phone: params.phone,
      type: 1
    };
    return request({
      url: '/shopUser/sendVercode',
      method: 'post',
      data
    })
  },
  registerInfo(params){
    let data = {
      phone: params.phone,
      password: params.password,
      remarks: params.code,
    };
    return request({
      url: '/shopUser/register',
      method: 'post',
      data
    })
  },
  /** reset.vue---结束 **/
}
